﻿@model BBICMS.Application.ViewModels.Front.ProductsListVM
@{
	ViewBag.Title = Title.Products;
}

@section header{
  
<link href="~/plugins/toastr/toastr.min.css" rel="stylesheet" />
}


@section featured{
    <div class="sitepath">
        <div class="container">
          
            <ol class="breadcrumb">
                <li><a href="/">@Menu.Home</a></li>
                <li>&gt;</li>
                <li class="active">@Menu.Product</li>
            </ol>
                </div>
          
    </div>
}


  
    <!-- products   ================================================== -->
    <section class="container page-products">

        <div class="productlist clearfix">
            @foreach (var product in Model.ProductList)
        {
            Html.RenderPartial("_PartialProductBox", product);
        }
        </div>
        @if (Model.ProductList.Any())
    {
        <footer class="text-center">
            @Html.PagedListPager((IPagedList)Model.ProductList, page => Url.Action("Index", new { page }))
        </footer>
}
else
{
    <div class="alert alert-info">
        <i class="iconfont icon-info"></i> @Messages.NotFoundItem
    </div>
}



    </section>
  





@section scripts {
<script src="~/plugins/toastr/toastr.min.js"></script>
    <script>
        $(function () {
            //当前菜单
            $(".menu>ul>li:nth-of-type(3) a").addClass("active");
            //收藏
            $('.item-collection').click(function (e) {
                e.preventDefault();
                var url = $(this).attr('data-url'), title = "@Title.Collection", that = $(this);

                Common.CollectionItem(url, title, that);

            });
        })
    </script>

}